package com.trmq.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/5  10:31
 * 描述:
 */
@Mapper
public interface TestMapper {


    @Update("update base_user set userName=#{userName} where id=#{id}")
    public int updateUserData(Map<String,Object> map);


    @Select("select id,userName from base_user")
    public List<Map<String,Object>> getUserList();


}
